package cn.edu.hncj.Web;

import cn.edu.hncj.Config.SpringConfiguration;
import cn.edu.hncj.Service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Auther: Lix
 * @Date: 2024/11/17 - 11 - 17 - 11:42
 * Description: cn.edu.hncj.Web
 * Version: 1.0
 */
public class UserController {
    public static void main(String[] args) {
        // ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");
        AnnotationConfigApplicationContext app = new AnnotationConfigApplicationContext(SpringConfiguration.class);
        UserService userService = app.getBean(UserService.class);
        userService.save();
    }
}
